package com.example.demo.service;

import com.example.demo.dao.StudentDao;
import com.example.demo.model.Schedule;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class StudentServiceImpl implements StudentService {
    @Resource
    StudentDao studentDao;


    @Override
    public String findPassword(String phone) {
        return studentDao.findPasswordByPhone(phone);
    }

    @Override
    public Boolean exist(String Phone, String PassWord) {
        String password = studentDao.findPasswordByPhone(Phone);
        return password.equals(PassWord);
    }


}
